package sfy.md.structure.theflyweight;

import java.util.ArrayList;
import java.util.List;

public class Store implements StoreManager {
    List<Object> list = new ArrayList<>();

    @Override
    public Object getOne() {
        if(list!=null){

            return list.get(0);
        }
        return  null;

    }

    @Override
    public void setOne(Object o) {

        list.add(o);
    }
}
